package com.aos.eap.adapter;


import com.aos.eap.R;
import com.aos.eap.bean.SearchEqpBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import androidx.annotation.Nullable;


public class SearchEqpListAdapter extends BaseQuickAdapter<SearchEqpBean.EqpbodiesBean, BaseViewHolder> {


    public SearchEqpListAdapter(@Nullable List<SearchEqpBean.EqpbodiesBean> data) {
        super(R.layout.adapter_search_eqp_list, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, final SearchEqpBean.EqpbodiesBean item) {
        helper.setText(R.id.tvTime, item.getTime());
        helper.setText(R.id.tvFrom, item.getFrom());
        helper.setText(R.id.tvTo, item.getTo());
        helper.setText(R.id.tvOp, item.getOpeeration());
        helper.setText(R.id.tvUserId, item.getWorknum());
        helper.setText(R.id.tvUser, item.getOperator());
        helper.setText(R.id.tvDesc, item.getDescription());
    }
}
